package feedsec;
public class Feeder {
	Lion l=new Lion();
	Monkey m=new Monkey();
	Pigeon p=new Pigeon();
	 public String name;
	    public Feeder(String name){
	        this.name = name;
	    }
	    public String getName() {
			return name;
		}
		public void setName(String name) {
			this.name = name;
		}
		public void feedAnimal(Animal a[]){
	    	for (int i = 0; i < a.length; i++){
	            a[i].toeat();
	    	}
	    }
		public void feeder(Animal animals){
			System.out.println(" and feeder by "+this.name);
		}
	    
}
